package patterns.decorate;

public class House {
	private Float height;
	private Float acreage;
	private String address;
	private String buildYearAndMonth;

	public House(Float height, Float acreage, String address, String buildYearAndMonth) {
		super();
		this.height = height;
		this.acreage = acreage;
		this.address = address;
		this.buildYearAndMonth = buildYearAndMonth;
	}

	public String showDescription() {
		return new StringBuffer("house height:").append(height).append(",acreage:").append(acreage).append(",address:")
				.append(address).append(",buildYearAndMonth:").append(buildYearAndMonth).append(",price:")
				.append(getPrice()).append("$").toString();
	}

	public Float getPrice() {
		return height * acreage * 100 + 5000;
	}

	public Float getHeight() {
		return height;
	}

	public void setHeight(Float height) {
		this.height = height;
	}

	public Float getAcreage() {
		return acreage;
	}

	public void setAcreage(Float acreage) {
		this.acreage = acreage;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getBuildYearAndMonth() {
		return buildYearAndMonth;
	}

	public void setBuildYearAndMonth(String buildYearAndMonth) {
		this.buildYearAndMonth = buildYearAndMonth;
	}
}
